﻿@model Guan.CMS.Web.ViewModels.Article.ArticleDetailViewModel
@{
    ViewBag.Title = string.IsNullOrWhiteSpace(Model.MetaTitle) ? Model.Title : Model.MetaTitle;
    ViewBag.MetaKeywords = Model.MetaKeywords;
    ViewBag.MetaDescription = Model.MetaDescription;
}
<div class="content_resize">
    <div class="article-detail">
        <div class="article-head">
            <h3 class="title">@Model.Title</h3>
            <p class="dpet">
                <span class="time">发表时间：@Html.DisplayFor(m=> m.CreatedTime)</span>
                <span class="fsize">【字号：
                    <a href="javascript:void(0);" rel="nofollow" onclick="javascript:changeTextSize('130%');" title="130%">大</a>
                    <a href="javascript:void(0);" rel="nofollow" onclick="javascript:changeTextSize('100%');" title="100%">中</a>
                    <a href="javascript:void(0);" rel="nofollow" onclick="javascript:changeTextSize('80%');" title="80%">小</a>】
                </span>
                <span>阅读：@Model.Hits</span>
            </p>
        </div>
        <div class="maincnt" id="maincnt">
            @Html.Raw(Model.Body)
        </div>
        <div class="extbar fn-clear">
            <!-- Baidu Button BEGIN -->
            <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
                <a class="bds_qzone"></a>
                <a class="bds_tsina"></a>
                <a class="bds_tqq"></a>
                <a class="bds_renren"></a>
                <a class="bds_t163"></a>
                <span class="bds_more"></span>
                <a class="shareCount"></a>
            </div>
            <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=3343198"></script>
            <script type="text/javascript" id="bdshell_js"></script>
            <script type="text/javascript">
                /*var bds_config = {
                    'bdDes': '@Model.SNSDescription', 	//'请参考自定义分享摘要'
                    'bdText': '@Model.SNSText', 	//'请参考自定义分享内容'
                    'bdPopTitle': '@Model.SNSPopTitle', //'请参考自定义pop窗口标题'
                    'bdTop': @(Model.SNSTopHeight),	//'请参考自定义侧栏高度'
                    'bdComment': '@Model.SNSComment', //'请参考自定义分享评论'
                    'bdPic': '@Model.SNSPictureUrl', //'请参考自定义分享出去的图片'
                    'searchPic': '@(Model.SNSCatchedPic?0:1)', //'0为抓取，1为不抓取，默认为0，目前只针对新浪微博'
                    'wbUid': '@Model.SNSWeiboUid'//, 	//'请参考自定义微博 id'
                    /*'render': false, 			//'请参考自定义分享回流量统计'
                    'review': 'normal', 		//'请参考自定义分享回流签名'
                    'snsKey': { 'tsina': 'appkey'}		//'请参考自定义分享到平台的appkey'#1#
                };*/
                document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date() / 3600000)
            </script>
            <!-- Baidu Button END -->
        </div>
        @*<div class="article-comment">
            <p class="btitle">评论</p>
        </div>*@
    </div>
</div>
@section Scripts
{
    <script type="text/javascript">
        function changeTextSize(percent) {
            $("#maincnt").css("font-size", percent);
        }
    </script>
}
